package org.pattern.builder;

import org.pattern.builder.builders.FullAutomaticPizzaOven;
import org.pattern.builder.model.Cook;
import org.pattern.builder.model.Pizza;
import org.pattern.builder.model.XMLPizza;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 16-11-2010
 * Time: 18:28:16
 * To change this template use File | Settings | File Templates.
 */
public class main {


    public static void main(String[] args){
        Cook cook = new Cook();

		Pizza hawaiian = cook.buyHawaiianPizza();

        System.out.println(hawaiian);

		Pizza spicy = cook.buySpicyPizza();

        System.out.println(((XMLPizza)spicy).toXML());
    }
}
